package singlemodel.lazy;

public class LazyInstance {
    private static LazyInstance lazyInstance;

    private LazyInstance(){
        System.out.println("lazy man");
    }

    public synchronized static LazyInstance getInstance(){
        if(lazyInstance==null){
            lazyInstance=new LazyInstance();
        }
        return lazyInstance;
    }
}
